package com.ruoyi.reviews.domain;

import com.ruoyi.books.domain.Books;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 书籍评论对象 book_reviews
 * 
 * @author 张队
 * @date 2025-05-11
 */
public class BookReviews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 书籍id */
    @Excel(name = "书籍id")
    private Long bookId;

    /** 评论者姓名 */
    @Excel(name = "评论者姓名")
    private String reviewerName;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String reviewText;

    /** 评分 */
    @Excel(name = "评分")
    private Long rating;
    private Books books;

    @Override
    public String toString() {
        return "BookReviews{" +
                "id=" + id +
                ", bookId=" + bookId +
                ", reviewerName='" + reviewerName + '\'' +
                ", reviewText='" + reviewText + '\'' +
                ", rating=" + rating +
                ", books=" + books +
                '}';
    }

    public Books getBooks() {
        return books;
    }

    public void setBooks(Books books) {
        this.books = books;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }

    public void setReviewerName(String reviewerName) 
    {
        this.reviewerName = reviewerName;
    }

    public String getReviewerName() 
    {
        return reviewerName;
    }

    public void setReviewText(String reviewText) 
    {
        this.reviewText = reviewText;
    }

    public String getReviewText() 
    {
        return reviewText;
    }

    public void setRating(Long rating) 
    {
        this.rating = rating;
    }

    public Long getRating() 
    {
        return rating;
    }

}
